	.file "ConsoleOutput.s"

	.equ	LF,	10
	.equ	STDIN,	0
	.equ	STDOUT,	1
	.equ	STDERR,	2

	.equ	SYS_read,	0
	.equ	SYS_write,	1
	.equ	SYS_open,	2
	.equ	SYS_close,	3
	.equ	SYS_exit,	60

	.section .rodata
message1:
	.string "Hello World.\n"
	.equ	msg1Len, . - message1
message2:
	.string "Enter Answer: "
	.equ	msg2Len, . - message2
newLine:
	.string "\n"

	.section .text
	.global main
	.type main, @function
main:
	pushq 	%rbp
	movq	%rsp, %rbp

	movq	$SYS_write, %rax
	movq	$STDOUT, %rdi
	leaq	message1(%rip), %rsi
	movq	$msg1Len, %rdx
	syscall	

	
	movq	$SYS_write, %rax
	movq	$STDOUT, %rdi
	leaq	message2(%rip), %rsi
	movq	$msg2Len, %rdx
	syscall	

	movq	$SYS_write, %rax
	movq	$STDOUT, %rdi
	leaq	newLine(%rip), %rsi
	movq	$2, %rdx
	syscall	
	leaveq

	retq
